import type { SelectOption } from 'naive-ui'
const list: SelectOption[] = [
  {
    label: '字符串',
    value: 'string'
  },
  {
    label: '数值',
    value: 'number'
  },
  {
    label: '布尔',
    value: 'boolean'
  },
  {
    label: '其他',
    value: 'other'
  }
]

export default list

export function getWayName(value: string) {
  const info = list.find((el: SelectOption) => el.value === value)
  return info?.label || value
}
